
pkgname=m4
pkgver=1.4.18
pkgrel=1
pkgdesc="m4 macro processor"
arch=('x86_64')
license=('GPL3')
url="https://www.gnu.org/software/m4"
groups=('base-devel')
depends=('glibc' 'bash')
source=("https://ftp.gnu.org/gnu/m4/${pkgname}-${pkgver}.tar.xz")
md5sums=('730bb15d96fffe47e148d1e09235af82')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr
  make
}

check() {
  cd ${pkgname}-${pkgver}
  
  make check
}

package() {
  cd ${pkgname}-${pkgver}
  
  make prefix=${pkgdir}/usr install
}
